/**
 * Copyright (c) 2005-2016, yinwer81 (yinwer81@aliyun.com)
 *
 * Licensed under the Apache License, Version 2.0
 */
package com.nozturn.throne.entity;

public class User extends IdEntity {

    private static final long serialVersionUID = 5461330892871692315L;

    /**
     * 用户名
     */
    private String username;

    /**
     * 密码
     */
    private String password;

    /**
     * 盐
     */
    private String salt;

    /**
     * 用户类型：100 Business，200 Person
     */
    private Integer usertype;

    /**
     * 用户状态：100无效，200有效(默认值)
     */
    private Integer valid;
    /**
     * 联系方式，亦可登录
     */
    private String mobile;

    /**
     * 用户在所属客户端的UUID
     */
    private Long clientUuid;
    /**
     * 用户在所属客户端的PK
     */
    private Long[] clientPks;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public Integer getUsertype() {
        return usertype;
    }

    public void setUsertype(Integer usertype) {
        this.usertype = usertype;
    }

    public Integer getValid() {
        return valid;
    }

    public void setValid(Integer valid) {
        this.valid = valid;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public Long getClientUuid() {
        return clientUuid;
    }

    public void setClientUuid(Long clientUuid) {
        this.clientUuid = clientUuid;
    }

    public Long[] getClientPks() {
        return clientPks;
    }

    public void setClientPks(Long[] clientPks) {
        this.clientPks = clientPks;
    }

}
